package com.jier.entities;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 系统权限
 *
 * @author eayon
 * @date 2017-05-08
 */
@Table(name = "system_permission")
public class SystemPermission extends BaseEntity implements Serializable {
    /**
     * 名称
     */
    private String name;

    /**
     * 代码值
     */
    private String code;

    /**
     * 模块ID
     */
    @Column(name = "module_id")
    private Integer moduleId;

    /**
     * 次序
     */
    @Column(name = "sort_order")
    private Integer sortOrder;

    /**
     * 状态，0 为禁用， 1 为启用
     */
    private Boolean status;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getModuleId() {
        return moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }
}